ifneq ($(KERNELRELEASE),)
	obj-m		:= test1_module.o
	test1_module-objs 	:= test1.o
	test1_module-objs 	+= netlink_u.o
	ccflags-y += -I./
	#ccflags-y += -std=c99
	#EXTRA_CFLAGS += -std=c99
else
	PWD := $(shell pwd)
	KVER := $(shell uname -r)
	KDIR := /lib/modules/$(KVER)/build

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules

clean:
	rm -rf *.o *.mod.c *.mod.o *.ko *.symvers *.order *.a
	rm -f $(test1_module-objs)  
endif
